export default function permissions(state = [], action: any) {
    if (action.type === 'SET_PERMISSIONS') {
        state = action.payload
    }
    if (action.type === 'CLAEN_PERMISSIONS') {
        state = []
    }
    return state
}